source /home/work_nfs7/xlgeng/.bashrc
dir=/home/work_nfs11/xlgeng/new_workspace/wenet_gxl_aishell/examples/wenetspeech/s0/exp/u2pp_conformer
mkdir -p $dir
train_config=$dir/train.yaml
test_data_dir="/home/work_nfs8/xlgeng/data/scp_test"
test_sets1="aishell1"
test_sets2="aishell2"
test_sets3="speechio_0 speechio_1"
test_sets4="speechio_3 speechio_4"
test_sets5="test_meeting"
test_sets6="test_net_0"
test_sets7="test_net_1"
test_sets8="speechio_2"
decode_checkpoint_name="step_11100"
decode_checkpoint=$dir/"${decode_checkpoint_name}".pt

stage=5
stop_stage=5


echo "final checkpoint is $decode_checkpoint"
test_sets=$(echo "$test_sets" | sed 's/ /--/g')
gxl_num="001"

my_named_nohup "${gxl_num}_01" ./recognize.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets1"
my_named_nohup "${gxl_num}_02" ./recognize.sh --gpu_id 1 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets2"
my_named_nohup "${gxl_num}_03" ./recognize.sh --gpu_id 2 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets3"
my_named_nohup "${gxl_num}_04" ./recognize.sh --gpu_id 3 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets4"
my_named_nohup "${gxl_num}_05" ./recognize.sh --gpu_id 4 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets5"
my_named_nohup "${gxl_num}_06" ./recognize.sh --gpu_id 5 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets6"
my_named_nohup "${gxl_num}_07" ./recognize.sh --gpu_id 6 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets7"
my_named_nohup "${gxl_num}_08" ./recognize.sh --gpu_id 7 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir" --test_sets "$test_sets8"

